home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume89
/
fun
/
c64.1
next >
Wrap
Internet Message Format
|
1989-05-18
|
43KB
Path: xanth!ames!amdahl!oliveb!sun!swap!page
From: page%swap@Sun.COM (Bob Page)
Newsgroups: comp.sources.amiga
Subject: v89i140: c64 - commodore 64 emulator spoof
Message-ID: <105550@sun.Eng.Sun.COM>
Date: 17 May 89 15:27:20 GMT
Sender: news@sun.Eng.Sun.COM
Lines: 1426
Approved: page@sun.com
Submitted-by: ecarroll@vax1.tcd.ie (Eddy Carroll)
Posting-number: Volume 89, Issue 140
Archive-name: fun/c64.1
This "C64 Emulator" was written for April Fools day of 1988. It's
designed to let you fool your friends (however briefly) into thinking
your Amiga is a C64.
[uuencoded executable included. ..bob]
# This is a shell archive.
# Remove anything above and including the cut line.
# Then run the rest of the file through 'sh'.
# Unpacked files will be owned by you and have default permissions.
#----cut here-----cut here-----cut here-----cut here----#
#!/bin/sh
# shar: SHell ARchive
# Run the following text through 'sh' to create:
# README
# makefile
# commands.c
# main.c
# screen.c
# commands.h
# screen.h
# C64.info.uu
# C64.uu
# This is archive 1 of a 1-part kit.
# This archive created: Wed May 17 20:22:17 1989
echo "extracting README"
sed 's/^X//' << \SHAR_EOF > README
X
X =========================
X C 6 4 E M U L A T O R
X =========================
X
XThis "C64 Emulator" was written for April Fools day of 1988. It's designed
Xto let you fool your friends (however briefly) into thinking your Amiga is
Xa C64. I had quite a bit of fun with this at that time, because I have
Xboth a C64 and Amiga, and I've also written a fairly good "Amiga ball"
Xdemonstration for the C64. With both of them running at the same time,
Xpeople get very confused :-)
X
XAnyway, load the program by typing C64 from the CLI or click on the icon
Xfrom workbench. Once loaded, you are presented with the C64 startup screen,
Xand you can type in commands. The C64's usual editing facilities are
Xavailable: The cursor keys move the cursor, F10 homes the cursor, F20 clears
Xthe screen and DEL inserts characters at the current cursor position. All
Xthe other function keys are mapped to some of the commands available.
X
XThe emulator knows about quite a few of the standard C64 commands - try
Xout your favourites.
X
XModifying the commands and error messages merely requires you to edit
Xthe commands.c file appropriately, and recompile.
X
XEddy Carroll
Xecarroll@cs.tcd.ie
SHAR_EOF
echo "extracting makefile"
sed 's/^X//' << \SHAR_EOF > makefile
X#
X# Aztec Make makefile, for Lattice C V4.0 :-)
X#
X# Commodore 64 spoof Emulator, April 1988
X#
X
XOBJS = main.o commands.o screen.o
X#
X#
X#
X.c.o:
X lc -s -v $*.c
X#
X#
X#
Xall: c64
X
Xc64: $(OBJS)
X blink from lib:c.o $(OBJS) to C64 sc sd nd map ram:map \
X lib lib:lc.lib lib:amiga.lib
X
Xmain.o: main.c screen.h commands.h
Xscreen.o: screen.c screen.h
Xcommands.o: commands.c commands.h
SHAR_EOF
echo "extracting commands.c"
sed 's/^X//' << \SHAR_EOF > commands.c
X/*
X * Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
X *
X * Module: COMMANDS.C
X *
X * Contains definitions for the commands, error messages, and standard
X * prompts used in the emulator. To change the messages, only this module
X * need be recompiled.
X *
X */
X
X#include <exec/types.h>
X#include "commands.h"
X
X/*
X * List of commands and standard responses. Each record stores a command
X * name, it's length, and a "response" message for that command.
X * Note: The first entry corresponds to a line number being entered.
X *
X */
X
Xstruct commandlist command[] = {
X
X{NULL, 4, 0,
X{"Hmmm...a would-be programmer, eh?\r",
X "In fact, this emulator doesn't\ractually emulate PROGRAMS.\r",
X NULL
X}},
X{"GO AMIGA",4,0,
X{"Ah - very good! If you can have GO 64\ron a C128, why not GO AMIGA\r",
X"Nah...that won't work\r",
XNULL
X}},
X{"LIST", 4, 0,
X{"3 Bags Flour\r6 Doz Eggs\r1 Loaf Bread\r",
X "1 3.5\42 Disk Drive\r1 Colour Monitor\r1 Amiga 500\r",
X NULL
X}},
X{"LOAD\42$\42", 7, 0,
X{"You want a directory? Try a phone\rbook instead.\r",
X"Sorry - I don't feel up to disk access\rjust at the moment. In fact, \
XI'm feelingrather depressed if you must know.\rBrain the size of a \
Xplanet, and what\rdo people do - try and get a\rDIRECTORY. I don't know \
Xwhat the\rworld is coming too...\r",
X"Look, if you try that ONCE more I'll\rbe very cross\r"
X}},
X{"LOAD", 4, 0,
X{"Erm...I'm afraid that this emulation\rdoesn't emulate the LOAD command.\r",
X "And just how do you expect me to\raccomplish that on an Amiga?\r",
X"Ok, I'LL load a program when YOU show\rme where you've plugged in the 1541\r"
X}},
X{"RUN", 3, 0,
X{"Oh God, not another one of these\rkeep-fit addicts.\r",
X"Can't - my ankle's twisted!\r",
X NULL
X}},
X{"SAVE", 4, 0,
X{"Yes! Yes! Yes! With the E.B.S.\r",
X"Only Jesus can do that.\r",
XNULL
X}},
X{"CLOSE", 5, 0,
X{"Hmm ... another Public holiday?\r",
X"Shut up, yourself!\r",
XNULL
X}},
X{"CLR", 3, 0,
X{"... as clear as mud, I reckon.\r",
X"Okay, I'm thinking clearly now.\rEverything makes perfect sense\r\
XDaisy, where are you now?\r",
X"Pardon?\r"
X}},
X{"CONT", 4, 0,
X{"Won't continue error\r",
X"Same to you with knobs on!\r",
XNULL
X}},
X{"DATA", 4, 0,
X{"Blind data error.\r",
X"You like Police records, then?\r",
XNULL
X}},
X{"DIM", 3, 0,
X{"I am not!\r",
X"It's dark enough, thanks.\r",
X"Okay, put on the specs, it's in\r3-d from now on.\r"
X}},
X{"END", 3, 0,
X{".. of the universe ?\r",
X"Okay, I'm finished working.\r",
XNULL
X}},
X{"GET", 3, 0,
X{"I'm not getting anymore messages\rfor you.\r",
X"I got that yesterday!\r",
X"I never get that kind of joke.\r"
X}},
X{"GOSUB", 5, 0,
X{"Into submarines, are we?\r",
X"Okay, but I won't return.\r",
X"No! Use procedures.\r"
X}},
X{"GO", 2, 0,
X{"I'm fed up going here, going there\rand never a word of thanks.\r",
X"Now where?\r",
X"I've already been there - it's very\rboring.\r"
X}},
X{"IF", 2, 0,
X{"No 'ifs', be sure!\r",
X"If I were a rich man...\r",
XNULL
X}},
X{"INPUT", 5, 0,
X{"Ask whatever you want, I'm not\rtelling.\r",
X"You'll have to ask someone else.\r",
XNULL
X}},
X{"LET", 3, 0,
X{"Let bygones be bygones.\r",
X"Let it be.\r",
X"This computer is not to let.\r"
X}},
X{"NEW", 4, 0,
X{"Okay, I'm brand new.\r",
X"No news today .. sorry!\r",
XNULL
X}},
X{"STOP", 4, 0,
X{"Arrggghhh .. can't stop now.\r",
X"Sccrreeeeech ....\r",
X"Bl@@dy lollipop person!\r"
X}}
X
X
X
X
X};
X
Xint MAXCOMMANDS = 19;
X
X/*
X * Now come the error messages, these are printed out whenever the
X * emulator is given a command it doesn't recognise.
X *
X */
X
Xchar *errormsg[] = {
X
X"?Too many fingers on keyboard error\r",
X"?String too tangled error\r",
X"?Formula too boring error\r",
X"?Novice programmer error\r",
X"?Computer too busy error\r",
X"?Atari Owner in vicinity error\r",
X"?Command too trivial error\r",
X"?Hardware malfunction error\r",
X"?No silver lining on cloud error\r",
X"?Year not a leap year error\r",
X"?Hyper-space misdirection error\r",
X"?Memory empty error\r",
X"?No bits to bite error\r",
X"?Commodore 64 incompatibility error\r",
X"?Invalid lexical indicator error\r",
X"?4th dimensional error\r",
X"?Nth dimensional error\r",
X"?Out of this world error\r",
X"?Too many users on system error\r",
X"?Too many characters on screen error\r",
X};
X
Xint MAXERRORS = 20;
X
X/*
X * Now come a few standard messages.
X *
X */
X
Xchar *STARTUP =
X"\r **** Commodore 64 Basic V2 ****\r\r\
X 64K Ram System 38911 Basic Bytes Free\r\r";
X
Xchar *ABOUT =
X"\r *** Commodore 64 Emulator ***\r\r\
X by Eddy Carroll 1st April 1988\r\r";
X
Xchar *READY =
X"Ready.\r";
SHAR_EOF
echo "extracting main.c"
sed 's/^X//' << \SHAR_EOF > main.c
X/*
X * Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
X *
X * Module: MAIN.C
X *
X * This module is the mainline - it handles the input loop and command
X * interpretation logic.
X *
X */
X
X#include <exec/types.h>
X#include <exec/io.h>
X#include <intuition/intuition.h>
X#include <proto/exec.h>
X#include <proto/intuition.h>
X#include <proto/graphics.h>
X#include "screen.h"
X#include "commands.h"
X
X#define DEL '\177'
X/*
X * Defining the following functions here stops them from being pulled into
X * the program from the Lattice library when we link.
X */
X
Xint chkabort() {return(0);}
Xvoid MemCleanup() {}
X
X/*
X * Global references
X */
X
Xextern struct Menu mymenus;
Xextern struct IntuiText mytext[];
X
Xextern struct commandlist command[]; /* Commands & Responses */
Xextern char *errormsg[]; /* List of error msgs */
Xextern int MAXCOMMANDS; /* Number of commands */
Xextern int MAXERRORS; /* Number of messages */
Xextern char *STARTUP; /* Startup message */
Xextern char *ABOUT; /* "About..." message */
Xextern char *READY; /* Ready prompt */
X
X/*
X * Executes one of the menu commands
X *
X */
X
Xvoid domenu(opt)
Xint opt;
X{
X CURSOROFF;
X
X switch (opt) {
X
X case M_ABOUT:
X clearscreen();
X if (titlebar) printchar('\r'); /* Skip past title bar if on */
X printmess(ABOUT);
X printmess(READY);
X break;
X
X case M_TITLE:
X titlebar = !titlebar;
X ClearMenuStrip(mywin);
X mytext[1].IText = titlebar ? " Hide Title" : " Show Title";
X SetMenuStrip(mywin,&mymenus);
X ShowTitle(myscreen, titlebar);
X break;
X
X case M_QUIT:
X cleanup(0);
X break;
X
X }
X}
X
X/*
X * Returns a random number in range 0..range-1.
X *
X */
X
Xint random(range)
Xint range;
X{
X LONG seconds,micros;
X CurrentTime(&seconds,µs);
X return (micros % range);
X}
X
X
X/*
X * Reads current line from screen into string, stripping off any extra
X * leading or trailing spaces.
X *
X */
X
Xvoid getcommand(s)
Xchar *s;
X{
X int i = 0, j = 39;
X char *p;
X p = screen[cursory];
X while (p[i] == ' ' && i < 40)
X i++;
X if (i == 40) {
X *s = '\0';
X return;
X }
X
X while (p[j] == ' ')
X j--;
X while (i <= j) {
X *s++ = toupper(p[i]);
X i++;
X }
X *s = '\0';
X}
X
X
X/*
X * Returns TRUE if the first n chars of the two strings are equal, else
X * returns FALSE
X *
X */
X
Xint match(s1,s2,n)
Xchar *s1,*s2;
Xint n;
X{
X while (*s1++ == *s2++ && n)
X n--;
X return (!n);
X}
X
X
X/*
X * Initialises error messages to be in random order.
X *
X */
X
Xvoid initerror()
X{
X int i, x, y;
X char *p;
X
X for (i = 0; i < MAXERRORS; i++) {
X x = random(MAXERRORS);
X y = MAXERRORS - 1 - random(MAXERRORS);
X p = errormsg[x];
X errormsg[x] = errormsg[y];
X errormsg[y] = p;
X }
X}
X
X
X/*
X * Prints a suitable response for command in string s. If a match is found
X * in the command list, then a reponse appropriate to that command is
X * printed, else one of the standard error messages is printed.
X *
X */
X
Xvoid docommand(s)
Xchar *s;
X{
X static int curerr = 0;
X int i = 1, k = -1, x, y;
X char *p;
X struct commandlist *com;
X
X if (*s >= '0' && *s <= '9')
X k = 0;
X else {
X while (i < MAXCOMMANDS && k < 0) {
X if (match(command[i].asc,s,command[i].len))
X k = i;
X i++;
X }
X }
X
X printchar('\r');
X if (k >= 0) {
X com = &command[k];
X do {
X com->num++;
X
X /* If we have printed all three messages once each, re-arrange */
X /* the order of them before we print them again to make it */
X /* seem random. */
X
X if (com->num >= MAXRESPONSE) {
X com->num = 0;
X x = random(MAXRESPONSE); y = random(MAXRESPONSE);
X p = com->response[x];
X com->response[x] = com->response[y];
X com->response[y] = p;
X }
X } while ((p = com->response[com->num]) == NULL);
X printmess(p);
X } else {
X printmess(errormsg[curerr]);
X curerr++;
X if (curerr >= MAXERRORS) {
X curerr = 0;
X initerror();
X }
X }
X
X printmess(READY);
X}
X
X
X/*
X * Initialises the message headers to point to random messages
X *
X */
X
Xvoid initmess()
X{
X int i;
X for (i = 0; i < MAXCOMMANDS; i++)
X command[i].num = random(3);
X}
X
X
X/*
X * Returns code for function key n, where n = 0..20
X * Returns 0 if no char equivalent. Also binds otherwise undefined
X * function keys to common commands recognised.
X */
X
Xchar fkey(n)
Xint n;
X{
X register char ch = 0;
X switch (n) {
X
X case 9: ch = C_HOME;
X break;
X case 19: ch = C_CLEAR;
X break;
X case 20: printmess("HELP");
X break;
X default: if (n >= 0 & n <= 19)
X printmess(command[n].asc); /* Get command & print it */
X break;
X }
X return (ch);
X}
X
X/*
X * Converts code (an escape character) into one of the internal codes
X * (or 0 if no corresponding code)
X *
X */
X
Xchar convert(ch)
Xchar ch;
X{
X switch (ch) {
X
X case 'A': ch = C_UP; break;
X case 'B': ch = C_DOWN; break;
X case 'C': ch = C_RIGHT; break;
X case 'D': ch = C_LEFT; break;
X
X default: ch = 0;
X }
X
X return(ch);
X}
X
X/*
X * Mainline
X *
X */
X
Xvoid _main()
X{
X LONG MenuNumber;
X struct MenuItem *item;
X register struct IntuiMessage *message;
X register struct Message *conmessage;
X int escape = 0;
X LONG class;
X USHORT code;
X int time = 3, curstate = 0, fkeynum;
X char s[50], ch;
X
X
X titlebar = 0; /* Initially hidden */
X initscreen();
X initmess();
X initerror();
X printmess(STARTUP);
X printmess(READY);
X CURSORON;
X
X
X /* Main loop */
X
X#define INTUIBITS (1 << mywin->UserPort->mp_SigBit)
X#define CONSOLEBITS (1 << ConReadPort->mp_SigBit)
X
X while (1) {
X
X /* Reset message pointers, just in case 2nd part of conditional */
X /* && isn't executed. */
X message = NULL;
X conmessage = NULL;
X
X while ((message = (struct IntuiMessage *)
X GetMsg(mywin->UserPort)) == NULL &&
X (conmessage = (struct Message *)
X GetMsg(ConReadPort)) == NULL)
X Wait ( INTUIBITS | CONSOLEBITS);
X
X
X if (message) { /* Got an IntuiMessage */
X class = message->Class;
X code = message->Code;
X ReplyMsg((struct Message *)message);
X
X switch (class) {
X
X case MENUPICK:
X MenuNumber = code;
X while (MenuNumber != MENUNULL) {
X item = (struct MenuItem *)ItemAddress(&mymenus,MenuNumber);
X code = item->Command;
X MenuNumber = item->NextSelect;
X }
X domenu(code);
X break;
X
X case INTUITICKS:
X if (time == 0) {
X curstate = 1 - curstate;
X if (curstate)
X CURSORON;
X else
X CURSOROFF;
X time = 3;
X } else --time;
X break;
X
X }
X }
X
X if (conmessage) { /* Character from console */
X ch = *constring;
X /* Retrieve char, then line up request for next char */
X QueueRead(ConReadReq,constring);
X if (ch == CSI)
X escape = 1, fkeynum = 0;
X else {
X if (escape) {
X if (isdigit(ch))
X fkeynum = fkeynum * 10 + ch - '0', ch = 0;
X else if (ch == '?')
X fkeynum = 20, ch = 0;
X else if (ch == ' ')
X escape = 2, ch = 0;
X else {
X escape = 0;
X if (ch == '~')
X ch = fkey(fkeynum);
X else if (escape != 2)
X ch = convert(ch);
X }
X }
X CURSOROFF;
X if (ch == '\r') {
X getcommand(s); /* Read command from screen */
X printchar(ch);
X if (*s)
X docommand(s);
X } else {
X if (ch == DEL) /* If delete key (Ascii #127) */
X ch = C_INSERT; /* Make it act as insert */
X printchar(ch);
X }
X CURSORON;
X time = 3;
X curstate = 1;
X }
X }
X }
X}
SHAR_EOF
echo "extracting screen.c"
sed 's/^X//' << \SHAR_EOF > screen.c
X/*
X * Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
X *
X * Module: SCREEN.C
X *
X * This module contains the various screen handling routines used by
X * the emulator.
X *
X */
X
X#define SCREEN
X
X#include <exec/types.h>
X#include <exec/io.h>
X#include <intuition/intuition.h>
X#include <proto/exec.h>
X#include <proto/graphics.h>
X#include <proto/intuition.h>
X#include "screen.h"
X
Xstruct RastPort *rp;
Xint openconsole = 0;
X
Xstruct NewScreen NewScreen = {
X 0,0,320,200, /* Screen position & size */
X 2, /* 2 bitplanes = 4 colours */
X 0,1, /* Default text colours */
X 0, /* Lores, non-interlace */
X CUSTOMSCREEN, /* Screen type */
X 0, /* Use default font for now */
X "C64 Emulator", /* Screen title */
X 0, /* No gadgets */
X 0 /* No custom bitmap */
X};
X
X#define NORMALFLAGS WINDOWCLOSE | WINDOWSIZING | WINDOWDEPTH | WINDOWDRAG
Xstruct NewWindow NewWindow = {
X 0,0,320,200, /* Window position & Size */
X 0,1, /* Default text colours */
X MENUPICK | /* Ok, we want to know */
X INTUITICKS, /* about menus & timings */
X BACKDROP | /* These four flags define */
X BORDERLESS | /* the type of window we */
X ACTIVATE | /* open. Here, we want an */
X 0 , /* "invisible" window. */
X NULL, /* No gadgets */
X NULL, /* Default menus check mark */
X NULL, /* No window title */
X NULL, /* Will point to our screen */
X NULL, /* No special bitmap used */
X 0,0,320,200, /* No resizing so not used */
X CUSTOMSCREEN /* Open this on OUR screen */
X};
X
XUWORD blackcol[4] = { /* All black array for initial screen */
X 0,0,0,0};
X
XUWORD screencol[4] = { /* Default colours for custom screen */
X 0x077E, /* Colour 0 = Light blue */
X 0x0EEE, /* Colour 1 = White */
X 0x077E, /* Colour 2 = Lighter blue */
X 0x011C /* Colour 3 = Dark Blue */
X};
X
Xstruct IntuiText mytext[] = {
X/* Pens Mode Pos Font Text Next */
X{ 0,1, JAM1, 0,0, NULL, (UBYTE *)" About...", NULL},
X{ 0,1, JAM1, 0,0, NULL, (UBYTE *)" Show Title", NULL},
X{ 0,1, JAM1, 0,0, NULL, (UBYTE *)" Quit", NULL}};
X
X
X
X#define MENUFLAGS ITEMTEXT | ITEMENABLED | HIGHCOMP
X#define IDATA(off,str,key) 0,off,110,9,MENUFLAGS,0,str,NULL,key,NULL,NULL
X
Xstruct MenuItem myitems[] = {
X{ &myitems[1], IDATA( 0, (APTR)&mytext[0], M_ABOUT) },
X{ &myitems[2], IDATA(10, (APTR)&mytext[1], M_TITLE) },
X{ NULL, IDATA(20, (APTR)&mytext[2], M_QUIT ) }};
X
Xstruct Menu mymenus = {NULL, 0,0,100,10, MENUENABLED, "Project", myitems};
X
X
X/*
X * Free all resources allocated in this module
X *
X */
X
Xvoid cleanup(err)
Xint err;
X{
X if (openconsole)
X CloseDevice(ConReadReq);
X
X if (ConReadReq)
X DeleteStdIO(ConReadReq);
X
X if (ConReadPort)
X DeletePort(ConReadPort);
X
X if (mywin) {
X ClearMenuStrip(mywin);
X CloseWindow(mywin);
X }
X if (myscreen)
X CloseScreen(myscreen);
X
X if (IntuitionBase)
X CloseLibrary(IntuitionBase);
X
X if (GfxBase)
X CloseLibrary(GfxBase);
X
X exit(err);
X}
X
X
X
X/*
X * Clears the screen
X *
X */
X
Xvoid clearscreen()
X{
X register char *p;
X register int i;
X SetRast(rp,3);
X for (p = (char *)screen, i = 1000; i--; *p++ = ' ')
X ;
X cursorx = 0;
X cursory = 0;
X}
X
X
X/*
X * Tells console device we want to read a character from keyboard
X *
X */
X
Xvoid QueueRead(request,whereto)
Xstruct IOStdReq *request;
Xchar *whereto;
X{
X request->io_Command = CMD_READ;
X request->io_Data = (APTR)whereto;
X request->io_Length = 1;
X SendIO(request);
X}
X
X/*
X * Initialises the screen, character set, colours etc. Exits program with
X * error code if an error occurs.
X *
X */
X
Xvoid initscreen()
X{
X if (!mywin) {
X if ((IntuitionBase =
X (struct IntuitionBase *)OpenLibrary("intuition.library",0)) == 0)
X cleanup(1);
X
X if ((GfxBase =
X (struct GfxBase *)OpenLibrary("graphics.library",0)) == 0)
X cleanup(2);
X
X if ((myscreen = (struct Screen *)OpenScreen(&NewScreen)) == 0)
X cleanup(3);
X
X LoadRGB4(&(myscreen->ViewPort),blackcol,4);
X ShowTitle(myscreen,0);
X NewWindow.Screen = myscreen;
X
X if ((mywin = (struct Window *)OpenWindow(&NewWindow)) == 0)
X cleanup(4);
X
X SetMenuStrip(mywin, &mymenus);
X rp = mywin->RPort;
X
X /* Initialise communication ports for Console */
X
X if ((ConReadPort = CreatePort(0,0)) == NULL)
X cleanup(5);
X
X if ((ConReadReq = CreateStdIO(ConReadPort)) == NULL)
X cleanup(6);
X
X ConReadReq->io_Data = (APTR)mywin;
X ConReadReq->io_Length = sizeof(*mywin);
X
X /* Open console and tell it to turn off the cursor */
X if (OpenDevice("console.device",0,ConReadReq,0))
X cleanup(7);
X openconsole = 1;
X
X /* Tell console to get first character ready for us */
X QueueRead(ConReadReq,constring);
X
X SetAPen(rp,2); /* Set primary colour */
X SetBPen(rp,3); /* Set secondary colour */
X clearscreen(); /* Fill screen to raster colour */
X LoadRGB4(&(myscreen->ViewPort),screencol,4);
X
X }
X}
X
X
X/*
X * Outputs a character to the screen at co-ordinates x,y. If mode is 0,
X * then output normal character, else output reverse character.
X *
X */
X
Xvoid writechar(x,y,ch,mode)
Xint x,y;
Xchar ch;
Xint mode;
X{
X char s[2];
X s[0] = ch;
X Move(rp,x * 8, y * 8 + 6); /* Quick multiply by 8 */
X if (mode) {
X SetDrMd(rp,INVERSVID|JAM2);
X Text(rp,s,1);
X SetDrMd(rp, JAM2);
X } else
X Text(rp,s,1);
X}
X
X/*
X * Scrolls the screen up one line. Both the visible rastport screen,
X * and the internal screen are scrolled.
X *
X */
X
Xvoid scrollup()
X{
X register char *p, *q;
X register int i;
X
X ScrollRaster(rp,0,8,0,0,319,199);
X for (p = (char *)screen,q = (char *)screen+40, i = 960; i--; *p++ = *q++)
X ;
X for (i = 40; i--; *p++ = ' ')
X ;
X cursory--;
X
X}
X
X
X
X/*
X * Handles special characters like CR, cursor keys etc.
X *
X */
X
Xvoid special(ch)
Xchar ch;
X{
X register char *p, *q;
X register int i,j;
X
X switch (ch) {
X
X case C_CR: /* Carriage Return */
X cursorx = 0;
X cursory++;
X if (cursory >= 25)
X scrollup();
X break;
X
X case C_UP: /* Cursor Up */
X if (cursory)
X cursory--;
X break;
X
X case C_DOWN: /* Cursor Down */
X cursory++;
X if (cursory >= 25)
X scrollup();
X break;
X
X case C_LEFT: /* Cursor Left */
X if (cursorx == 0) {
X if (cursory) {
X cursorx = 39;
X cursory--;
X }
X } else
X cursorx--;
X break;
X
X case C_RIGHT: /* Cursor Right */
X cursorx++;
X if (cursorx >= 40) {
X cursorx = 0;
X cursory++;
X if (cursory >= 25)
X scrollup();
X }
X break;
X
X case C_DEL: /* Delete */
X if (cursorx == 0) {
X if (cursory) {
X cursorx = 39;
X cursory--;
X screen[cursory][cursorx] = ' ';
X writechar(cursorx,cursory,' ',0);
X }
X } else {
X ScrollRaster(rp,8,0,cursorx*8,cursory*8,319,cursory*8+7);
X /* Move chars from here to end of line back one space */
X for (q = &(screen[cursory][cursorx]),
X p = q - 1, i = 40 - cursorx;
X i--;
X *p++ = *q++)
X ;
X *p = ' ';
X cursorx--;
X }
X break;
X
X case C_INSERT: /* Insert */
X if (screen[cursory][39] == ' ' && cursorx < 39) {
X ScrollRaster(rp,-8,0,cursorx*8,cursory*8,319,cursory*8+7);
X for (p = &screen[cursory][39], q = p - 1, i = 39 - cursorx;
X i--; *p-- = *q--)
X ;
X *p = ' ';
X }
X break;
X
X case C_CLEAR: /* Clear screen */
X clearscreen();
X break;
X
X case C_HOME: /* Home cursor */
X cursorx = 0;
X cursory = 0;
X break;
X
X case C_REDRAW: /* Redraw entire screen */
X for (i = 0; i < 25; i++)
X for (j = 0; j < 40; j++)
X writechar(j,i,screen[i][j],0);
X break;
X
X }
X}
X
X
X
X/*
X * Outputs character to screen at current cursor position, and advances
X * cursor to next position. Scrolls screen if necessary.
X *
X */
X
Xvoid printchar(ch)
Xchar ch;
X{
X if (ch < ' ')
X special(ch);
X else {
X writechar(cursorx,cursory,ch,0);
X screen[cursory][cursorx] = ch;
X cursorx++;
X if (cursorx >= 40) {
X cursorx = 0;
X cursory++;
X if (cursory >= 25)
X scrollup();
X }
X }
X}
X
X
X/*
X * Outputs string to screen at current cursor position
X *
X */
X
Xvoid printmess(s)
Xchar *s;
X{
X while (*s)
X printchar(*s++);
X}
SHAR_EOF
echo "extracting commands.h"
sed 's/^X//' << \SHAR_EOF > commands.h
X/*
X * Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
X *
X * Module: COMMANDS.H
X *
X * This module defines the structure used to contain commands and
X * the responses to those commands.
X *
X */
X
X#define MAXRESPONSE 3
X
Xstruct commandlist {
X char *asc; /* Pointer to command name (in uppercase) */
X int len; /* Length of command name (speeds up matching) */
X int num; /* Number of message to be printed next */
X char *response[MAXRESPONSE]; /* The message to print in response */
X};
SHAR_EOF
echo "extracting screen.h"
sed 's/^X//' << \SHAR_EOF > screen.h
X/*
X * Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
X *
X * Module: SCREEN.H
X *
X * This module contains standard definitions for all modules
X * the emulator.
X *
X */
X
X/* Control character representations */
X#define C_CR '\r' /* Must be real */
X#define C_UP '\01'
X#define C_DOWN '\02'
X#define C_LEFT '\03'
X#define C_RIGHT '\04'
X#define C_HOME '\05'
X#define C_INSERT '\06'
X#define C_CLEAR '\07'
X#define C_DEL '\010' /* Must be real */
X#define C_REDRAW '\014' /* Control-L */
X
X#define CSI '\233'
X
X/* Menu keys */
X#define M_ABOUT 1
X#define M_TITLE 2
X#define M_QUIT 3
X
X/* For enabling/disabling cursor */
X#define CURSORON writechar(cursorx,cursory,screen[cursory][cursorx],1)
X#define CURSOROFF writechar(cursorx,cursory,screen[cursory][cursorx],0)
X
X#ifndef SCREEN
X#define GLOB extern
X#endif
X#ifdef SCREEN
X#define GLOB
X#endif
X
X/*
X * Global Variables
X *
X */
X
XGLOB int cursorx, cursory; /* Position of cursor on screen */
XGLOB int titlebar; /* Start off with titlebar off */
XGLOB char screen[25][40]; /* Stores characters for screen */
XGLOB struct Screen *myscreen;
XGLOB struct Window *mywin;
XGLOB struct IntuitionBase *IntuitionBase;
XGLOB struct GfxBase *GfxBase;
XGLOB char constring[5]; /* For reads from console */
XGLOB struct IOStdReq *ConReadReq;
XGLOB struct MsgPort *ConReadPort;
X
Xextern struct MsgPort *CreatePort();
Xextern struct IOStdReq *CreateStdIO();
Xextern void DeletePort(),DeleteStdIO();
SHAR_EOF
echo "extracting C64.info.uu"
sed 's/^X//' << \SHAR_EOF > C64.info.uu
X
Xbegin 644 C64.info
XMXQ```0``````*``0`#,`'@`&``,``0`!)G```2LP````````````````````Z
XM`````TP``%X@``"I@````#L````%```````````````````````S`!T``@`"*
XM;3@#``````````````````````````````?___P`````"````@`````3___Y]
XM`````!/___D`````$P``&0`````3=O>9`````!,``!D`````$V``&0`````3:
XM```9`````!,``!D`````$P``&0`````3```9`````!,``!D`````$___^0``3
XM```3___Y``````@```(`````!____````````````````!____\`````?,S,%
XMS,````'9F9F9\```!S,S,S,\```?______\`````````````````````````*
XM``````````````````````````````````````````````````````?___P`!
XM````#____@`````/___^``````\``!X`````#P``'@`````/```>``````\`L
XM`!X`````#P``'@`````/```>``````\``!X`````#P``'@`````/```>````_
XM``____X`````#____@`````'___\````````````````````````````````7
XM``````____\`````/____X````#_____X``````````````?______\```__,
XM_____@``````````````````````````````,P`=``(``X+P`P``````````%
XM```````````````````'___\``````@```(`````$````0`````0'P\!````;
XM`!`P&8$`````$#<9@0`````0,QF!`````!`>#P$`````$````0`````0/QF!0
XM`````!`P&8$`````$#\?@0`````0,P&!`````!`_`8$`````$````0`````(X
XM```"``````?___P````````````````?____`````'S,S,S````!V9F9F?``4
XM``<S,S,S/```'_______````````````````````````````````````````I
XM```````````````````````````````````````'___\``````P```8`````3
XM#!\/!@`````,,!F&``````PW&88`````##,9A@`````,'@\&``````P```8`L
XM````##\9A@`````,,!F&``````P_'X8`````##,!A@`````,/P&&``````P`9
XM``8`````!____``````````````````````````````````````/____````3
XM`#____^`````_____^``````````````'_______```/______X`````````[
X>```````````````````!``````P````!``````$`/
X``
Xend
Xsize 1065
SHAR_EOF
echo "extracting C64.uu"
sed 's/^X//' << \SHAR_EOF > C64.uu
X
Xbegin 644 C64
XM```#\P`````````"``````````$```7.```%80```^D```7.2.=^_DOO`#0DN
XM2"0`2?D`````+'@`!"E.`$`I3P!,0JP`2)/)3J[^VB9`*6L`F``X2JL`K&<`)
XM`'`@#9"M``0&@````(`I0``$80`!>B!K`*S1R-'((F@`$-/)T\D@`G(`$ADI0
XM20!4T(%2@$)G4H`"0/_^G\!5@$)W"``@`E.`U($?L@``(`!3@E'(__8?O``@(
XM(`!3@A^Q(``@`%'*__@B3R\)8```;"EK`#H`!`:L````@``$80`!#F$``/@I&
XM0`!(+P`D0"`J`"1G$BQL$"`@0"(H```I00`X3J[_@B(J`"!G&B0\```#[4ZN,
XM_^(I0`!09PKEB"!`)V@`"`"D(&P`2"\(2&P``"!H`"0I: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```6G$_O``PD7TYU```@+P`$2'@`,"\`3KD``!804(].=2`O0
XM``0O`$ZY```64EB/3G5(YS@`)"\`$"8O`!1*@F8$<`!@*"\\``$``2\#3KD`3
XM`!:$($`H"%"/9@)@Y!%\``4`"#%#`!(A0@`.(`A,WP`<3G4@;P`$(`AF`F`D?
XM$7P`_P`(</\A0``4</\A0``8<``P*``2+P`O"$ZY```6G%"/3G4``"\.+'D`=
XM``!`3.\``P`(3J[_.BQ?3G4``"\.+'D```!`(F\`""`O``Q.KO\N+%].=2\.3
XM+'D```!`(F\`"$ZN_MHL7TYU+PXL>0```$`@+P`(3J[^MBQ?3G4O#BQY````Y
XM0"`O``A.KOZP+%].=2\.+'D```!`(F\`"$ZN_IXL7TYU+PXL>0```$`B;P`(K
XM3J[^F"Q?3G5(YSP"+'D``!0L(F\`&$SO`#\`'$ZN_G1,WT`\3G4``````^P`X
XM```-````````%BX``!9Z```5^```%@@``!5&```5(@``%7H``!72```55@``_
XM%8P``!68```5M@``%=X````*`````0``%QX``!<(```6]```%N```!;,```6C
XMN```%J```!:(```!$@````X````````#\@```^H```0+````````````````>
XM`````````````````````````````````````````````````````````````
XM``````````````````````````````````````````````!D;W,N;&EB<F%RP
XM>0`@2&ED92!4:71L90`@4VAO=R!4:71L90``````2$5,4`````!(;6UM+BXN:
XM82!W;W5L9"UB92!P<F]G<F%M;65R+"!E:#\-``!);B!F86-T+"!T:&ES(&5M,
XM=6QA=&]R(&1O97-N)W0-86-T=6%L;'D@96UU;&%T92!04D]'4D%-4RX-``!'Q
XM3R!!34E'00``06@@+2!V97)Y(&=O;V0A($EF('EO=2!C86X@:&%V92!'3R`V"
XM-`UO;B!A($,Q,C@L('=H>2!N;W0@1T\@04U)1T$-``!.86@N+BYT:&%T('=O,
XM;B=T('=O<FL-``!,25-4```S($)A9W,@1FQO=7(--B!$;WH@16=G<PTQ($QO\
XM868@0G)E860-`#$@,RXU(B!$:7-K($1R:79E#3$@0V]L;W5R($UO;FET;W(-'
XM,2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O=2!WV
XM86YT+"!))VT@;F]T#71E;&QI;F<N#0``66]U)VQL(&AA=F4@=&\@87-K('-OX
XM;65O;F4@96QS92X-`$Q%5`!,970@8GEG;VYE<R!B92!B>6=O;F5S+@T``$QEC
XM="!I="!B92X-`%1H:7,@8V]M<'5T97(@:7,@;F]T('1O(&QE="X-`$Y%5P!/#
XM:V%Y+"!))VT@8G)A;F0@;F5W+@T`3F\@;F5W<R!T;V1A>2`N+B!S;W)R>2$->
XM``!35$]0``!!<G)G9V=H:&@@+BX@8V%N)W0@<W1O<"!N;W<N#0!38V-R<F5E=
XM965E8V@@+BXN+@T``$)L0$!D>2!L;VQL:7!O<"!P97)S;VXA#0``````````:
XM``0`````````C````+``````````[`````0`````````]@```3H````````!B
XM4@````0````````!6````7X````````!K@````<````````!M@```>@```+6<
XM```#"@````0````````#$````U@```.8```#Y`````,````````#Z```!!P`/
XM```````$.@````0````````$0```!&`````````$>@````4````````$@```Q
XM!*(````````$M@````,````````$N@``!-H```4T```%/@````0````````%$
XM1```!5H````````%=@````0````````%?```!9`````````%L`````,`````P
XM```%M```!<````7<```&#@````,````````&$@``!B@````````&1@````,`+
XM```````&2@``!G8```:.```&K@````4````````&M```!LX```;J```'````>
XM``(````````'!```!T0```=0```'?@````(````````'@@``!Y8````````'C
XML`````4````````'M@``!^`````````(`@````,````````(!@``""````@L0
XM```(2@````0````````(3@``"&0````````(?@````0````````(A```"*(`8
XM``BV````$S]4;V\@;6%N>2!F:6YG97)S(&]N(&ME>6)O87)D(&5R<F]R#0``J
XM/U-T<FEN9R!T;V\@=&%N9VQE9"!E<G)O<@T``#]&;W)M=6QA('1O;R!B;W)I1
XM;F<@97)R;W(-```_3F]V:6-E('!R;V=R86UM97(@97)R;W(-`#]#;VUP=71E>
XM<B!T;V\@8G5S>2!E<G)O<@T`/T%T87)I($]W;F5R(&EN('9I8VEN:71Y(&5RV
XM<F]R#0`_0V]M;6%N9"!T;V\@=')I=FEA;"!E<G)O<@T`/TAA<F1W87)E(&UA=
XM;&9U;F-T:6]N(&5R<F]R#0``/TYO('-I;'9E<B!L:6YI;F<@;VX@8VQO=60@/
XM97)R;W(-`#]996%R(&YO="!A(&QE87`@>65A<B!E<G)O<@T``#](>7!E<BUS*
XM<&%C92!M:7-D:7)E8W1I;VX@97)R;W(-```_365M;W)Y(&5M<'1Y(&5R<F]RK
XM#0``/TYO(&)I=',@=&\@8FET92!E<G)O<@T`/T-O;6UO9&]R92`V-"!I;F-OP
XM;7!A=&EB:6QI='D@97)R;W(-```_26YV86QI9"!L97AI8V%L(&EN9&EC871OR
XM<B!E<G)O<@T`/S1T:"!D:6UE;G-I;VYA;"!E<G)O<@T`/TYT:"!D:6UE;G-I4
XM;VYA;"!E<G)O<@T`/T]U="!O9B!T:&ES('=O<FQD(&5R<F]R#0`_5&]O(&UA#
XM;GD@=7-E<G,@;VX@<WES=&5M(&5R<F]R#0``/U1O;R!M86YY(&-H87)A8W1ES
XM<G,@;VX@<V-R965N(&5R<F]R#0````K,```*\@``"PX```LJ```+1```"UX`Q
XM``M^```+F@``"[@```O:```+^```#!H```PP```,2```#&X```R0```,J```9
XM#,````S:```,_````!0-("`@("HJ*BH@0V]M;6]D;W)E(#8T($)A<VEC(%8R\
XM("HJ*BH-#2`V-$L@4F%M(%-Y<W1E;2`@,S@Y,3$@0F%S:6,@0GET97,@1G)E(
XM90T-````#78-("`@("`J*BH@0V]M;6]D;W)E(#8T($5M=6QA=&]R("HJ*@T-=
XM("`@(&)Y($5D9'D@0V%R<F]L;"`Q<W0@07!R:6P@,3DX.`T-````#<I296%DG
XM>2X-````#A@`````0S8T($5M=6QA=&]R`````````4``R``"``$````/````+
XM````#B@````````````````!0`#(``$`0`$````9````````````````````:
XM``````````````%``,@`#P``````````!WX.[@=^`1P@06)O=70N+BX`(%-H[
XM;W<@5&ET;&4`(%%U:70```$````````````````.E@```````0``````````Q
XM``````Z@```````!````````````````#JP````````/$```````;@`)`%(`1
XM```````.L@`````!````````````#S(````*`&X`"0!2````````#L8`````I
XM`@``````````````````%`!N``D`4@````````[:``````,`````````4')O[
XM:F5C=`````````````!D``H``0``#U0```[N``````````!I;G1U:71I;VXN%
XM;&EB<F%R>0!G<F%P:&EC<RYL:6)R87)Y``!C;VYS;VQE+F1E=FEC90``````Z
XM```````/U@``````````````````````````````````````````#_@`````L
XM`````````````````````````````````````````````````````````````
XM```````````````````````````H```````````````````#[````&L````!#
XM```/U@``#[0```]N```/:@``#T0```\B```/$```#P````[N```.Y@``#M(`@
XM``Z^```.2@``#B````X4```-Q@``#6X```UJ```-9@``#6(```U>```-6@``M
XM#58```U2```-3@``#4H```U&```-0@``#3X```TZ```--@``#3(```TN```-R
XM*@``#28```TB```*Q```"L````J\```*L```"J@```JD```*F```"I0```J0>
XM```*C```"H````IX```*=```"F@```I@```*7```"E````I,```*2```"D0`R
XM``HX```*-```"C````HL```*(```"AP```H8```*%```"@@```H````)_```A
XM"?````GL```)Z```">0```G8```)T```"<P```G````)N```";0```FH```)<
XMI```":````F<```)D```"8@```F$```)>```"7````EL```)8```"5@```E4_
XM```)2```"40```E````)/```"3````DL```)*```"20```D8```)$```"0P`'
X?``D````(^```"/0```CH```(X```"-P````````#\B0`:
X``
Xend
Xsize 10696
SHAR_EOF
echo "End of archive 1 (of 1)"
# if you want to concatenate archives, remove anything after this line
exit